package com.whu.tcx01.road;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoadServiceImpl implements RoadService{
    @Autowired
    private RoadMapper roadMapper;

    @Override
    public List<RoadPojo> getRoads() {
        return roadMapper.getRoads();
    }

    @Override
    public List<RoadPojo> selectByStart(long id) {
        return roadMapper.selectByStart(id);
    }

    @Override
    public List<RoadPojo> selectByStop(long id) {
        return roadMapper.selectByStop(id);
    }
}
